package com.example.everying.model.entity.content;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: everything
 * @description: 文章图片文件类
 * @author: zw
 * @create: 2025-05-15 16:40
 **/
@Data
@TableName("activity_picture")
public class ActivityPictures implements Serializable {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "图片主键")
    @TableId("pid")
    private String pid;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "发表内容id")
    @TableField("article_id")
    private String articleId;

    private String name;      // 原始文件名
    private String url;       // 访问URL
    private String ossPath;   // OSS存储路径
    private Long size;        // 文件大小(字节)
    private String contentType; // MIME类型

}
